#ifndef __TITLE_H__
#define __TITLE_H__

#include "../import/head.h"
#include "../tools/head.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{

	class title : public xos_stl::mem_pool_item< title, thread_lock >
    {
    public:
        title();
        ~title();

	public:
		static int add( const char * lpszName,
			const char * lpszCode,
			const char * lpszInfo,
			int city_num,
			int score,
			int need_ciry_type_id,
			int zhenzhu,
			int shanhu,
			int liuli,
			int hupuo,
			int manao,
			int shuijing,
			int feichui,
			int yushi,
			int yemingzhu,
			int nId,
			int * lpIntId );
		static int del( const char * lpszName, const char * lpszCode, int nId );
		static int modify( int nId, 
			const char * lpszName, 
			const char * lpszCode,
			const char * lpszInfo,
			int city_num,
			int score,
			int need_ciry_type_id,
			int zhenzhu,
			int shanhu,
			int liuli,
			int hupuo,
			int manao,
			int shuijing,
			int feichui,
			int yushi,
			int yemingzhu );
		static int get( const char * lpszName, const char * lpszCode, int nId, title::LIST * pRetList );

    public:
		int title_id;
		char info[4096];
		char name[64];
		char code[64];
		int city_num;
		int score;
		int need_ciry_type_id;
		int zhenzhu;
		int shanhu;
		int liuli;
		int hupuo;
		int manao;
		int shuijing;
		int feichui;
		int yushi;
		int yemingzhu;

    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __TITLE_H__
